﻿
<html>
<head>
    <title>部门录入</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <link href="/styles/styles.css" type="text/css" rel="stylesheet"/>

    <link rel="stylesheet" type="text/css" href="/style/public.css">
    <link rel="stylesheet" type="text/css" href="/style/common.css">
    <link rel="stylesheet" type="text/css" href="/vendor/jquery/easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/vendor/jquery/easyui/themes/icon.css">

    <script type="text/javascript" src="/js/plugin/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="/vendor/jquery/easyui/jquery.easyui.min.js" ></script>

    <script type="text/javascript" src="/js/deptTreeEnum.js"></script>
    <script type="text/javascript" src="/js/common/common.js"></script>
    <script type="text/javascript">
        var ctx = "";
        var dimId = "52";
        function saveTreeToLvlEnum(dimId){
            saveTreeToLvlEnumNew(dimId);
        };
    </script>
</head>
<body>
<div  class=''>
    <div style="line-height: 50px;">
        <a id="addBtn" href="javascript:;" class="btn h30 gray">新增</a>
        <a id="modifyBtn" href="javascript:;" class="btn h30 gray">修改</a>
    </div>
    <table id="tg" class="easyui-treegrid" style="width:565px;height:200px"
           data-options="
                   iconCls: 'icon-ok',
                    rownumbers: true,
                    animate: true,
                    fitColumns: true,
                    fit:true,               //网格自动撑满
                    cache:false,
                    idField: 'id',
                    treeField: 'name',
                    url: '/dept/getAllDeptList',
                    method: 'get',
                    showFooter: true
                ">
        <thead>
        <tr>
            <th data-options="field:'name',align:'left',width:150,editor:'text'">部门名称</th>
            <th data-options="field:'nodeCode',align:'center',width:100,editor:'text'">部门编码</th>
            <th data-options="field:'op',align:'center',formatter:formatButton" width="60">操作</th>
        </tr>
        </thead>
    </table>
    </br>
    <div style="line-height: 50px;">
        <a id="generateBtn" href="javascript:;" class="btn h30 gray">生成</a>
    </div>
    <br>
    <div style="overflow:scroll;height: 230px;width:565px;">
        <table id="dimDefTreeEnumLvlTable" class="table-bordered table1"
               style="font-size: 14px;text-align: center;table-layout:fixed;">
            <thead>
            <tr>

                <th style="text-align: center;" width="120px">一级分类</th>
                <th style="text-align: center;" width="120px">一级编码</th>
                <th style="text-align: center;" width="120px">二级分类</th>
                <th style="text-align: center;" width="120px">二级编码</th>
                <th style="text-align: center;" width="120px">三级分类</th>
                <th style="text-align: center;" width="120px">三级编码</th>
                <th style="text-align: center;" width="120px">四级分类</th>
                <th style="text-align: center;" width="120px">四级编码</th>

            </tr>
            <tbody>
            </tbody>
            </thead>
        </table>
    </div>
</div>
</body>
</html>